package com.yankaizhang.blog.service.impl;

import com.yankaizhang.blog.entity.Log;
import com.yankaizhang.blog.mapper.LogMapper;
import com.yankaizhang.blog.service.LogService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Yankai
 * @since 2020-10-03
 */
@Service
public class LogServiceImpl extends ServiceImpl<LogMapper, Log> implements LogService {

    @Autowired
    LogMapper logMapper;

    @Override
    public List<Log> getLatestLogs() {
        return logMapper.getLatestLogs();
    }
}
